package com.vanysoft.framework.kaptcha;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

/**
 * @author qi_ma
 */
@ConfigurationProperties(prefix = "kaptcha")
public class KaptchaProperties {

    private final Map<String, String> prop = new HashMap<>();


    private Boolean enable = true;

    public Properties getProperties() {
        Properties properties = new Properties();
        prop.forEach(properties::setProperty);
        return properties;
    }

    public Map<String, String> getProp() {
        return prop;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
}
